<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>CAD-Tool: Object_3d.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">CAD-Tool
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">Object_3d.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_object__3d_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef OBJECT_3D_H</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define OBJECT_3D_H</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;</div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="structs_8h.html">structs.h</a>&quot;</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="object__2d_8h.html">object_2d.h</a>&quot;</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="keyword">using namespace </span><a class="code" href="namespacestd.html">std</a>;</div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;</div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">// class object_2d;</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;</div><div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="class_object__3d.html">   36</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_object__3d.html">Object_3d</a></div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;{</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    <span class="keyword">public</span> :</div><div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="class_object__3d.html#a7817c087a9d1bb4f0e077e2b070e9596">   39</a></span>&#160;        std::vector&lt;vertex_3d&gt; <a class="code" href="class_object__3d.html#a7817c087a9d1bb4f0e077e2b070e9596">v3d_list</a>;  </div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;</div><div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="class_object__3d.html#a678f396b3aa4a3c0958ec0c7b7f36e89">   41</a></span>&#160;        std::vector&lt;edge_3d&gt; <a class="code" href="class_object__3d.html#a678f396b3aa4a3c0958ec0c7b7f36e89">e3d_list</a>; </div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;</div><div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="class_object__3d.html#a979ba92cf69caa653b89cf75fd278afe">   43</a></span>&#160;        std::vector&lt; std::vector&lt;int&gt; &gt; <a class="code" href="class_object__3d.html#a979ba92cf69caa653b89cf75fd278afe">surface_list</a>; </div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;        <a class="code" href="class_object__3d.html">Object_3d</a>(std::vector&lt;vertex_3d&gt; v3d_list,</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;         std::vector&lt;edge_3d&gt; e3d_list, std::vector&lt;std::vector&lt;int&gt; &gt; surface_list);</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;        <a class="code" href="class_object__3d.html">Object_3d</a>(<a class="code" href="classobject__2d.html">object_2d</a> o);</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;        <a class="code" href="class_object__3d.html">Object_3d</a>();</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;        <span class="comment">// **************** how to generate surfaces ?? ***********</span></div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;        <span class="keywordtype">void</span> add_vertex(<a class="code" href="classvertex__3d.html">vertex_3d</a> v);</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;        <span class="keywordtype">void</span> add_edge(<a class="code" href="classedge__3d.html">edge_3d</a> e);</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;        <span class="keywordtype">void</span> remove_edge(<a class="code" href="classedge__3d.html">edge_3d</a> e);</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    <span class="keyword">private</span>:</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;        <span class="keywordtype">void</span> add_vertices(std::vector&lt;vertex_2d&gt; T_vertices, std::vector&lt;vertex_2d&gt; F_vertices,</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;            std::vector&lt;vertex_2d&gt; S_vertices);</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;        <span class="keywordtype">void</span> decision_tree(<a class="code" href="classobject__2d.html">object_2d</a> o);</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;        <span class="keywordtype">bool</span> is_front_edge(std::vector&lt;vertex_2d&gt; F_vertices, std::vector&lt;edge_2d&gt; F_edges, <a class="code" href="classedge__2d.html">edge_2d</a> e);</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;        <span class="keywordtype">bool</span> is_side_edge(std::vector&lt;vertex_2d&gt; S_vertices, std::vector&lt;edge_2d&gt; S_edges, <a class="code" href="classedge__2d.html">edge_2d</a> e);</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;        <span class="keywordtype">bool</span> is_collinear(<a class="code" href="classedge__3d.html">edge_3d</a> e1, <a class="code" href="classedge__3d.html">edge_3d</a> e2);</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;        <span class="keywordtype">bool</span> is_overlapping(std::vector&lt;edge_3d&gt; E, <a class="code" href="classedge__3d.html">edge_3d</a> e);</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;        <span class="keywordtype">void</span> RER();</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;        <span class="keywordtype">void</span> sort_vertices(std::vector&lt;int&gt; &amp;vertices);</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;};</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="structs_8h_html"><div class="ttname"><a href="structs_8h.html">structs.h</a></div></div>
<div class="ttc" id="classedge__2d_html"><div class="ttname"><a href="classedge__2d.html">edge_2d</a></div><div class="ttdoc">class for an edge_2d </div><div class="ttdef"><b>Definition:</b> <a href="structs_8h_source.html#l00038">structs.h:38</a></div></div>
<div class="ttc" id="class_object__3d_html_a979ba92cf69caa653b89cf75fd278afe"><div class="ttname"><a href="class_object__3d.html#a979ba92cf69caa653b89cf75fd278afe">Object_3d::surface_list</a></div><div class="ttdeci">std::vector&lt; std::vector&lt; int &gt; &gt; surface_list</div><div class="ttdef"><b>Definition:</b> <a href="_object__3d_8h_source.html#l00043">Object_3d.h:43</a></div></div>
<div class="ttc" id="classvertex__3d_html"><div class="ttname"><a href="classvertex__3d.html">vertex_3d</a></div><div class="ttdoc">class for a vertex_3d </div><div class="ttdef"><b>Definition:</b> <a href="structs_8h_source.html#l00064">structs.h:64</a></div></div>
<div class="ttc" id="namespacestd_html"><div class="ttname"><a href="namespacestd.html">std</a></div></div>
<div class="ttc" id="classobject__2d_html"><div class="ttname"><a href="classobject__2d.html">object_2d</a></div><div class="ttdoc">representation of object_2d </div><div class="ttdef"><b>Definition:</b> <a href="object__2d_8h_source.html#l00011">object_2d.h:11</a></div></div>
<div class="ttc" id="class_object__3d_html"><div class="ttname"><a href="class_object__3d.html">Object_3d</a></div><div class="ttdef"><b>Definition:</b> <a href="_object__3d_8h_source.html#l00036">Object_3d.h:36</a></div></div>
<div class="ttc" id="classedge__3d_html"><div class="ttname"><a href="classedge__3d.html">edge_3d</a></div><div class="ttdoc">class for an edge_3d </div><div class="ttdef"><b>Definition:</b> <a href="structs_8h_source.html#l00097">structs.h:97</a></div></div>
<div class="ttc" id="class_object__3d_html_a7817c087a9d1bb4f0e077e2b070e9596"><div class="ttname"><a href="class_object__3d.html#a7817c087a9d1bb4f0e077e2b070e9596">Object_3d::v3d_list</a></div><div class="ttdeci">std::vector&lt; vertex_3d &gt; v3d_list</div><div class="ttdoc">vector of 3d vertices </div><div class="ttdef"><b>Definition:</b> <a href="_object__3d_8h_source.html#l00039">Object_3d.h:39</a></div></div>
<div class="ttc" id="class_object__3d_html_a678f396b3aa4a3c0958ec0c7b7f36e89"><div class="ttname"><a href="class_object__3d.html#a678f396b3aa4a3c0958ec0c7b7f36e89">Object_3d::e3d_list</a></div><div class="ttdeci">std::vector&lt; edge_3d &gt; e3d_list</div><div class="ttdoc">vector of 3d edges </div><div class="ttdef"><b>Definition:</b> <a href="_object__3d_8h_source.html#l00041">Object_3d.h:41</a></div></div>
<div class="ttc" id="object__2d_8h_html"><div class="ttname"><a href="object__2d_8h.html">object_2d.h</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
